package com.freecloud.javabasics.design.memento.demo1;

import com.freecloud.common.LoggerUtil;

/**
 * @Author: maomao
 * @Date: 2020-03-18 22:12
 */
public class Test {

    public static void main(String[] args) {
        DraftsBox draftsBox = new DraftsBox();

        Editor editor = new Editor("标题","内容");

        ArticleMemento articleMemento = editor.saveToMemento();

        draftsBox.addMemento(articleMemento);

        LoggerUtil.println(editor);
    }
}
